import request from "@/api/request"
import type { AxiosResponse } from "axios"

// get
export type GetWhiteHoldParams = {
  app_params: 'zxcvbn1'
}
export function getWhiteHold(params: GetWhiteHoldParams):Promise<AxiosResponse>{
  return request('white/get_block_device_white', params, 'post')
}

// create or update
export type SubmitWhiteHoldParams = {
  android_id: string,
  app_params: 'zxcvbn1',
  params_type: 1 | 2
}
export function submitWhiteHold(params: SubmitWhiteHoldParams):Promise<AxiosResponse>{
  return request('white/update_block_device_white', params, 'post')
}